<link href="__PUBLIC__/admin/css/massagemanage.css" rel="stylesheet">
<div class="row">
	<ol class="breadcrumb">
		<li><a href="{:U('Index/index')}"><span class="glyphicon glyphicon-home"></span></a></li>
		<li class="active">留言管理</li>
	</ol>
</div><!--/.row-->
<div class="row">
	<div class="col-lg-12">
		<h2>留言管理</h2>
		<table data-toggle="table" data-url="tables/data2.json" class="table table-hover">
		    <thead>
		   		<tr>
			    	<th>用户名</th>
			    	<th>时间</th>
			    	<th>联系方式</th>
			    	<th>内容</th>
			    	<th>操作</th>
		    	</tr>
		    </thead>
			<tbody>
				<?php foreach ($contact as $k => $v ) { ?> 
				<tr>
					<td><?php echo $v["name"]; ?></td>
					<td><?php echo $v["time"]; ?></td>
					<td><?php echo $v["contact"]; ?></td>
					<td><?php echo $v["content"]; ?></td>
					
					<td><a href="{:U('MessageManage/message?id='.$v['Id'])}">删除</a></td>
				</tr>
				<?php } ?>
			</tbody>
		</table>
	</div>
</div>
<button type="submit" class="btn btn-primary">确定</button>